package com.spy.material.dto;

import lombok.Data;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 库存明细查询DTO
 */
@Data
public class InventoryDetailQueryDTO {
    
    /**
     * 库存ID
     */
    @NotNull(message = "库存ID不能为空")
    private Long inventoryId;
    
    /**
     * 交易类型
     */
    private String transactionType;
    
    /**
     * 交易日期
     */
    private String startDate;

    private String endDate;
    
    /**
     * 页码
     */
    @NotNull(message = "页码不能为空")
    @Min(value = 1, message = "页码必须大于0")
    private Integer page = 1;
    
    /**
     * 每页记录数
     */
    @NotNull(message = "每页记录数不能为空")
    @Min(value = 1, message = "每页记录数必须大于0")
    private Integer pageSize = 10;
}